package com.swt.gap.model.vo;

import com.swt.gap.model.entity.Task;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author 蓝将军
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel
@Data
public class TaskVO extends Task {
    @ApiModelProperty(value = "任务创建者的用户名")
    private String createdName;

    @ApiModelProperty(value = "是否用权限操作，true:有")
    private Boolean permission;

    @ApiModelProperty(value = "是否有读的权限，创建者设置密码则其他用户无读的权限 需加锁")
    private Boolean hasReadPermission;
    @ApiModelProperty(value = "是否有写的权限，只有创建者才可以修改和删除 ")
    private Boolean hasWritePermission;


    @ApiModelProperty(value = "任务创建者的姓名")
    private String creatorRealName;

    @ApiModelProperty(value = "分析结果数")
    private Integer resultCount;
}
